// Variables
$font-stack: system-ui, Avenir, Helvetica, Arial, sans-serif;
$primary-color: #646cff;
$secondary-color: #535bf2;
$dark-bg: #242424;
$light-bg: #ffffff;
$text-dark: rgba(255, 255, 255, 0.87);
$text-light: #213547;

// Root styles
:root {
  font-family: $font-stack;
  line-height: 1.5;
  font-weight: 400;
  // color-scheme: light dark;
  color-scheme: light;
  color: $text-light;
  background-color: $light-bg;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  
}

// Links
a {
  font-weight: 500;
  color: $primary-color;
  text-decoration: inherit;
  &:hover {
    color: $secondary-color;
  }
}

// Body
body {
  // margin: 0;
  // display: flex;
  // place-items: center;
  min-width: 320px;
  min-height: 100vh;
}

// Headings
h1 {
  font-size: 3.2em;
  line-height: 1.1;
}

// Buttons

// Card
.card {
  padding: 2em;
}

// App container
#app {
  // max-width: 1280px;
  // margin: 0 auto;
  // padding: 2rem;
  // text-align: center;
}

// Light color scheme
@media (prefers-color-scheme: light) {
  :root {
    color: $text-light;
    background-color: $light-bg;
  }
  a:hover {
    color: #747bff;
  }
  button {
    background-color: #f9f9f9;
  }
}